﻿using System;
using System.Collections.Generic;

//[JsonObject(MemberSerialization.OptOut)]类 + [JsonIgnore]属性  ,默认序列化+指定忽略
//[JsonObject(MemberSerialization.OptIn)]类  + [JsonProperty]属性,默认不序列化+指定属性序列化

namespace BanaToys.InfoSys.Web.ApiCall.BanaWww
{

    #region item

    /// <summary>
    /// json产品,sync接口用,简单,list/detail的公用父类
    /// </summary>
    public class i_goods_item
    {
        public string FRowGuid { get; set; }
        public string FBarcode { get; set; }
        public string FProductName { get; set; }
        public string FProductDetails { get; set; }
        public string FTagGuid { get; set; }
        public string FPackaging { get; set; }
        public int? FPcsCtn { get; set; }
        public decimal? FGrossWeight { get; set; }
        public decimal? FNetWeight { get; set; }
        public decimal? FPSize_L { get; set; }
        public decimal? FPSize_W { get; set; }
        public decimal? FPSize_H { get; set; }
        public decimal? FBoxSize_L { get; set; }
        public decimal? FBoxSize_W { get; set; }
        public decimal? FBoxSize_H { get; set; }
        public string FRemark { get; set; }
    }

    /// <summary>
    /// json产品,list,detail接口用,扩展了sync
    /// </summary>
    public class i_goods_item_view : i_goods_item
    {
        public string Tag_FLevel1Path { get; set; }
        public string Tag_FLevel1NameEng { get; set; }
        public string Tag_FLevel2Path { get; set; }
        public string Tag_FLevel2NameEng { get; set; }
        public string Tag_FTreeCode { get; set; }
        public string Tag_FTreeCodePath { get; set; }

        public string FCreateTime { get; set; }
        public string FUpdateTime { get; set; }
        public bool? FIsDisabled { get; set; }
    }

    #endregion

    #region q

    /// <summary>
    /// sync,q
    /// </summary>
    public class q_goods_sync
    {
        public i_goods_item Item { get; set; }
    }

    /// <summary>
    /// list,q,查询结果列表
    /// </summary>
    public class q_goods_list
    {
        public string Barcode { get; set; }
        public string ProductName { get; set; }
        public string TagCodePath { get; set; }
        public bool? IsDisabled { get; set; }

        /// <summary>
        /// 默认每页10条
        /// </summary>
        public int? PageSize { get; set; }

        /// <summary>
        /// 默认0
        /// </summary>
        public int? PageIndex { get; set; }
    }

    /// <summary>
    /// detail,q
    /// </summary>
    public class q_goods_detail
    {
        public string FRowGuid { get; set; }
        public string FBarcode { get; set; }
    }

    /// <summary>
    /// delete,q
    /// </summary>
    public class q_goods_delete
    {
        public string FRowGuid { get; set; }
        public string FBarcode { get; set; }
    }

    /// <summary>
    /// state,q,状态修改,目前仅FIsDisabled一个状态
    /// </summary>
    public class q_goods_state
    {
        public string FRowGuid { get; set; }
        public string FBarcode { get; set; }

        public bool? FIsDisabled { get; set; }
    }

    #endregion

    #region a

    /// <summary>
    /// sync,a
    /// </summary>
    public class a_goods_sync : a__base
    {
        //
    }

    /// <summary>
    /// list,a
    /// </summary>
    public class a_goods_list : a__base
    {
        public int? PageSize { get;set; }
        public int? PageIndex { get;set; }
        public int? RowCount { get; set; }

        public List<i_goods_item_view> List { get; set; }
    }

    /// <summary>
    /// detail,a
    /// </summary>
    public class a_goods_detail : a__base
    {
        public i_goods_item_view Item { get; set; }
    }

    /// <summary>
    /// delete,a
    /// </summary>
    public class a_goods_delete : a__base
    {
        //
    }

    /// <summary>
    /// state,a
    /// </summary>
    public class a_goods_state : a__base
    {
        //
    }

    #endregion

}